package com.leather.common.result;

public enum CodeMsg {

    SUCCESS(0, "操作成功"),

    //用户模块错误码
    EMPTY_USERNAME(100001, "用户名为空"),
    EMPTY_PASSWORD(100002, "密码为空"),


    //管理员模块错误码
    EMPTY_ADMINNAME(200001, "管理员用户名为空"),
    EMPTY_ADMINPASSWORD(200002, "管理员密码为空"),
    DUPPY_ADMINNAME(200003, "管理员用户名重复"),
    EMPTY_ROLENAME(200004, "角色名为空"),
    DUPPY_ROLENAME(200005, "角色名重复"),
    ROLE_NOT_EXIST(200006, "角色不存在"),
    EMPTY_PERMISSION_NAME(200007, "权限名为空"),
    EMPTY_PERMISSION_VALUE(200008, "权限值为空"),
    EMPTY_PERMISSION_URL(200009, "权限url为空"),
    DUPPY_PERMISSIONNAME(200010, "重复权限名"),
    ERROR_ADMIN_NAME(200011, "错误的管理员用户名"),
    ERROR_PASSWORD_LENGTH(200012, "密码长度错误"),
    ERROR_ADMIN(200013, "管理员编号错误"),
    ERROR_ROLE(200014, "角色编号错误"),
    EMPTY_ADMINDESC(200015, "管理员描述为空"),
    DUPPY_PERMISION(200016, "权限已存在"),
    UN_AUTHNAITED(200017, "管理员未有该权限"),

    //消息传递模块
    EMPTY_MESSAGE_TITLE(300001, "消息标题为空"),
    EMPTY_MESSAGE_CONTENT(300002, "消息内容为空"),
    ERROR_USER_ID(300003, "用户编号有误"),
    ERROR_MESSAGE_URL(300004, "消息Url有误"),


    //用户管理模块
    EMPTY_USER_NUMBER(400001, "学号为空"),
    EMPTY_USER_PASSWORD(400002, "密码为空"),
    ERROR_NUMBER_LENGTH(400003, "学号长度有误"),
    ERROR_USER_PASSWORD_LENGTH(400004, "密码长度有误"),
    ERROR_NUMBER_PASSWORD(400005, "学号或者密码错误"),
    ERROR_TOKEN(400006, "token已过期"),
    ERROR_PASSWORD(400007, "密码错误"),
    FROZEN_USER(400008, "该用户已被冻结"),
    DUPPY_NICKNAME(400009, "重复的昵称"),
    ERROR_CODE(400010, "验证码错误"),
    ERROR_SEND_MESSAGE(400011, "发送短信失败"),
    DUPPY_PHONE(400012, "已绑定相同的手机号"),
    TIME_OUT_CODE(400013, "验证码已过期"),
    DUPPY_USER_PHONE(400014, "该手机号已被绑定"),
    OUT_OF_TIMES(400015, "该账号本月获取账号已达到最大值"),
    EMPTY_IMAGE_URL(400016, "头像地址为空"),
    EMPTY_NICK_NAME(400017, "昵称为空"),
    EMPTY_DESCRIPTION(400018, "个人简介为空"),
    ERROR_JWW_TOKEN(400019, "教务网登录时间过长"),
    ERROR_XQ(400019, "学期号为空"),
    DUPPY_TOUCHED(400020, "请勿重复关注"),



    //校园圈模块
    ERROR_QUAN_ID(600001, "帖子编号有误"),
    EMPTY_COMMENT_VALUE(600002, "评论内容为空"),
    EMPTY_SEARCHVALUE_VALUE(600002, "搜索内容为空"),



    //校外兼职模块
    EMPTY_JOB_NAME(700001,"兼职名字为空"),
    EMPTY_JOB_DESC(700002,"兼职描述为空"),
    ERROR_JOB_END_TIME(700003,"截止时间有误"),
    ERROR_JOB_ID(700004,"兼职编号有误"),
    EMPTY_JOB_ADDRRSS(700005,"工作地点为空"),


    SERVER_ERROR(500001, "系统错误"),
    SERVER_OFFLINE(500002, "微服务离线，请稍后重试"),
    NET_OFFLINE(500003, "网络离线，请稍后重试"),
    QINIUYUN_ERROR(500004, "七牛云连接失败，请稍后重试"),



    //格式错误相关错误码
    ERROR_PHONE(800001, "手机号格式错误"),


    //快递代取模块错误码
    EMPTY_TYPE(900001,"快递类型为空"),
    EMPTY_GET_ADDRESS(900002,"送达地址为空"),
    EMPTY_EXPRESS_ADDRESS(900003,"取件地址为空"),
    ERROR_PRICE(900004,"报酬格式错误"),
    EMPTY_REMARK(900005,"取件信息为空"),
    EMPTY_PHONE(900006,"电话号码为空"),
    EMPTY_CODE(900007,"取件码为空"),
    EMPTY_NAME(900008,"姓名为空"),
    EMPTY_EXPRESS_ID(900009,"快递编号有误"),
    IS_GET(900010,"该快递已被领取"),
    IS_DELETE(900011,"该快递订单已被删除"),



    //活动发布模块错误码
    EMPTY_ACTIVITY_TITLE(10000001,"活动标题为空"),
    EMPTY_ACTIVITY_DESC(10000002,"活动描述为空"),
    EMPTY_ACTIVITY_ADDRESS(10000003,"活动地址为空"),
    ERROR_ACTIVITY_START_TIME(10000004,"活动开始时间有误"),
    ERROR_ACTIVITY_END_TIME(10000005,"活动结束时间有误"),
    IS_PASS_IN(10000006,"发布的活动已有人报名无法删除!"),
    ERROR_ACTIVITY_ID(10000007,"活动编号有误"),
    HAS_FIXED(10000008,"活动编号有误"),


    //二手市场模块
    EMPTY_GOODSTYPE_NAME(1100001,"商品分类名称为空"),
    ERROR_GOODSTYPE_ID(1100002,"商品分类编号有误"),
    EMPTY_GOODS_NAME(1100003,"商品名称为空"),
    EMPTY_GOODS_DESC(1100004,"商品描述为空"),
    EMPTY_GOODS_PRICE(1100005,"商品价格错误"),
    ERROR_GOODS_ID(1100006,"商品编号有误"),



    //问答模块
    EMPTY_QUESTION_TITLE(1200001,"问题标题为空"),
    EMPTY_QUESTION_DESC(1200002,"问题描述为空"),
    ERROR_QUESTION_ID(1200003,"问题编号有误"),
    EMPTY_ANSWER_CONTENT(1200004,"回答内容为空"),
    DUPPY_ANSWER(1200005,"你已回答过此问题，请勿重复回答"),
    QUESTION_DELETED(1200006,"该问题已被删除"),
    ERROR_ANSWER_ID(1200007,"答案编号错误")



    ;


    private int code;

    private String message;

    CodeMsg(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
